package com.wfy.api;

import com.wfy.pojo.SpecParam;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Title: SpecApi
 * @Package com.wfy.api
 * @Author 王飞遥
 * @Date 2022/9/16 15:18
 */
@RequestMapping("/spec")
public interface SpecApi {
    /**
     *
     * @param gid 组id
     * @param cid 商品分类三级id
     * @param generic 是否通用
     * @param searching 是否可查询
     * @return
     */
    @GetMapping("/params")
    List<SpecParam> queryParams(
            @RequestParam(value = "gid",required = false)Long gid,
            @RequestParam(value = "cid",required = false)Long cid,
            @RequestParam(value = "generic",required = false)Boolean generic,
            @RequestParam(value = "searching",required = false)Boolean searching
    );
}
